/**
* @program: src
*
* @description:acconut配置
*
* @author: Mr.chen
*
* @create: 2020-12-19 10:34
**/
package config
// account日志配置
type AccountLogConfig struct {
	Level      string `mapstructure:"level"`
	Filename   string `mapstructure:"filename"`
	MaxSize    int    `mapstructure:"maxsize"`
	MaxAge     int    `mapstructure:"max_age"`
	MaxBackups int    `mapstructure:"max_backups"`
}

// 基础信息
type AccountBase struct {
	Port string `mapstructure:"port"`
}

// etcd配置信息
type AccountEtcd struct {
	Host string `mapstructure:"host"`
}

// 总配置信息
type AccountConfig struct {
	AccountBase AccountBase `mapstructure:"account-base"`
	AccountEtcd AccountEtcd `mapstructure:"account-etcd"`
	AccountLogConfig AccountLogConfig `mapstructure:"account-zaplog"`
}
